package com.bgds.sys.module.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bgds.sys.module.entity.project.Project;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


/**
 * @author chenchao
 */
@Mapper
public interface ProjectMapper extends BaseMapper<Project> {

    @Select(" SELECT substring(CODE, 11)+1  FROM  project ORDER BY  substring(CODE, 11) DESC LIMIT 1")
    Integer calculateTheAccumulatedValue();




}
